import request from '@/utils/request'

// 查询智付银行列表
export function listDinPayBank(query) {
  return request({
    url: '/ecs/dinPayBank/list',
    method: 'get',
    params: query
  })
}

// 查询智付银行详细
export function getDinPayBank(id) {
  return request({
    url: '/ecs/dinPayBank/' + id,
    method: 'get'
  })
}

// 新增智付银行
export function addDinPayBank(data) {
  return request({
    url: '/ecs/dinPayBank',
    method: 'post',
    data: data
  })
}

// 修改智付银行
export function updateDinPayBank(data) {
  return request({
    url: '/ecs/dinPayBank',
    method: 'put',
    data: data
  })
}

// 删除智付银行
export function delDinPayBank(id) {
  return request({
    url: '/ecs/dinPayBank/' + id,
    method: 'delete'
  })
}
